/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-26<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
package cn.cnsy123.bookwebsiteserver.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-26<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
@Entity
@Table(name = "BOOK_SYSTEM_CONFIG_INFO")
public class SysParamInfo {
    
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name = "DICT_ID")
    private Long dictId;
    
    @Column(name = "DICT_TYPE",length = 20)
    private String dictType;
    
    @Column(name = "DICT_CODE",length = 20)
    private String dictCode;
    
    @Column(name = "DICT_DESC",length = 50)
    private String dictDesc;
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "CREATE_DATE")
    private Date  createTime;
    
    public Long getDictId() {
        return dictId;
    }

    public void setDictId(Long dictId) {
        this.dictId = dictId;
    }

    public String getDictType() {
        return dictType;
    }

    public void setDictType(String dictType) {
        this.dictType = dictType;
    }

    public String getDictCode() {
        return dictCode;
    }

    public void setDictCode(String dictCode) {
        this.dictCode = dictCode;
    }

    public String getDictDesc() {
        return dictDesc;
    }

    public void setDictDesc(String dictDesc) {
        this.dictDesc = dictDesc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public SysParamInfo() {
        
    }

    public SysParamInfo(Long dictId, String dictType, String dictCode, String dictDesc, Date createTime) {
        this.dictId = dictId;
        this.dictType = dictType;
        this.dictCode = dictCode;
        this.dictDesc = dictDesc;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("{\"dictId\":");
        builder.append(dictId);
        builder.append(", \"dictType\":");
        builder.append(dictType);
        builder.append(", \"dictCode\":");
        builder.append(dictCode);
        builder.append(", \"dictDesc\":");
        builder.append(dictDesc);
        builder.append(", \"createTime\":");
        builder.append(createTime);
        builder.append("}");
        return builder.toString();
    }



}
